package com.example.placean.service.impl;


import com.example.food.domain.CoffeeTaste;

/**
 * 采用装饰者模式设计需求
 * 抽象装饰角色
 * @author jiangshoutong
 */
//装饰者基类
public abstract  class Decorator extends Order {

    private Order order;
    private CoffeeTaste coffeeTaste;

    public Decorator(Order order,CoffeeTaste coffeeTaste) {
        super(coffeeTaste.getName(),coffeeTaste.getPrice());
        this.order = order;
    }

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

}
